home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex54.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  263 b   |  11 lines

  1. Program Example54;
  2.  
  3. { Program to demonstrate the Round function. }
  4.  
  5. begin
  6.   Writeln (Round(1234.56));  { Prints 1235  }
  7.   Writeln (Round(-1234.56)); { Prints -1235 }
  8.   Writeln (Round(12.3456));  { Prints 12    }
  9.   Writeln (Round(-12.3456)); { Prints -12   }
  10. end.
  11.